<template>
	<view>
		<web-view :src="src"></web-view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				src:''
			}
		},
		methods:{
			
		},
		onLoad(options) {
			this.src = options.file;
			uni.setNavigationBarTitle({
				title:options.t || '预览文件'
			})
		}
	}
</script>

<style scoped>
</style>